var msgwin = "";

function createmsgwin() {
   msgwin = new Window('msg_dialog', {title:"Conversation", top:100, left:250, zIndex:150, resizable: true, showEffect:Element.show, hideEffect: Element.hide, width:400,height:440});
   msgwin.setCookie();
   msgwin.getContent().innerHTML = "Loading....";
   }
	
createmsgwin();

function omw(to) { // open msg window
   msgwin.getContent().innerHTML = "<iframe height=\"99%\" width=\"99%\" name=\"msg_content\"  id=\"msg_content\" SRC=\"/chat/show_msg/?to="+ escape(to) + "\"> </iframe>"
   msgwin.show();
	}

//function refresh() {
//	alert('ok');
//   setTimeout ("refresh()", 2000 ); 
//}

